sysroot: Add a flag to suppress post-deploy cleanup
authorColin Walters <walters@verbum.org>
Mon, 29 Aug 2016 02:22:59 +0000 (22:22 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Mon, 29 Aug 2016 07:45:24 +0000 (07:45 +0000)
commit8ece4d6d51bdbe3e41ab318259276bb83e553aa0
tree18bd352b19541ed2d6f4c7424671574a0de5046e
parentcfc3934e81bd1cd083f089c9711d1324b2612c9f
sysroot: Add a flag to suppress post-deploy cleanup

I noticed seeing the output of `prune` twice in rpm-ostree, and had
always wondered why.  When reading the rpm-ostree code to fix
something else, reasons, I noticed the reason - we were pruning once
here, and then once after rpm-ostree regenerates its "base" refs.

There's no reason to clean twice, so let's add a flag so rpm-ostree
can suppress doing it inside libostree.

Closes: #474
Approved by: giuseppe
src/libostree/ostree-sysroot.c
src/libostree/ostree-sysroot.h